From: Florian Müllner Date: Wed, 20 Nov 2019 22:15:55 +0000 (+0100) Subject: dateMenu: Don't ellipsize forecast times and temps X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~781^2^2~378 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=95f388b9a79ebfd492de929dcc17d4440024baee;p=gnome-shell.git dateMenu: Don't ellipsize forecast times and temps While those should be concise enough to fit, they may not where temperatures drop into double-digit negatives. It seems better to accept some awkward horizontal scrolling in that case than shorten relevant information. https://gitlab.gnome.org/GNOME/gnome-shell/issues/1926 --- diff --git a/js/ui/dateMenu.js b/js/ui/dateMenu.js index 2f7a95f44..af0984697 100644 --- a/js/ui/dateMenu.js +++ b/js/ui/dateMenu.js @@ -2,7 +2,7 @@ /* exported DateMenuButton */ const { Clutter, Gio, GLib, GnomeDesktop, - GObject, GWeather, Shell, St } = imports.gi; + GObject, GWeather, Pango, Shell, St } = imports.gi; const Util = imports.misc.util; const Main = imports.ui.main; @@ -366,6 +366,9 @@ class WeatherSection extends St.Button { x_align: Clutter.ActorAlign.CENTER, }); + temp.clutter_text.ellipsize = Pango.EllipsizeMode.NONE; + time.clutter_text.ellipsize = Pango.EllipsizeMode.NONE; + layout.attach(icon, col, 0, 1, 1); layout.attach(temp, col, 1, 1, 1); layout.attach(time, col, 2, 1, 1);